﻿@using brand.cyt369.com.MODELS
@* 品牌详情 *@
@{
    brand.cyt369.com.models.Brand brandDetail = ViewBag.brandDetail as brand.cyt369.com.models.Brand;
    IQueryable<brand.cyt369.com.models.Base.City> citys = ViewBag.citys as IQueryable<brand.cyt369.com.models.Base.City>;
}
<link rel="stylesheet" type="text/css" href="~/css/brand/index.css">
<link rel="stylesheet" type="text/css" href="~/css/brand/liuyan.css">
<script src="~/lib/jquery-3.4.1.min.js"></script>
<script src="~/js/brand/detailed-index.js"></script>
<script src="~/js/brand/detailed-img.js"></script>
<script src="~/js/brand/detailed-scroll.js"></script>
<script src="~/js/brand/liuyan.js"></script>
<!-- 详细界面的主要部分 -->
@if(brandDetail!=null){
<div class="des-main wrap clear">
    <input type="hidden" id="Id" value="@brandDetail.Id" />
    <input type="hidden" id="EditorID" name="EditorID" value="@brandDetail.EditorID" />
    <!-- 界面的迷你导航部分 -->
    <div class="path w1200">
        <a href="">首页</a>
        <em>></em>
            <a href="~/Search/Index/@Base64.ObjectToBase64(new { page=1,parentCategoryID=brandDetail.Category.ParentID })">@brandDetail.Category.Parent.CategoryName</a>
        <em>></em>
            <a href="~/Search/Index/@Base64.ObjectToBase64(new {  page=1,categoryID=brandDetail.CategoryID })">@brandDetail.Category.CategoryName</a>
            <em>></em>
        <a href="">@brandDetail.Name</a>
    </div>

    <!-- 主要内容部分 -->
    <div class="des-top w1200">
        <!-- 轮播图地点 -->
        <div class="picFocus">
            <!-- 组件上面 -->
            <div class="picFocus-top">
                @if (brandDetail.BrandImages != null)
                {
                    @foreach (var img in brandDetail.BrandImages)
                    {
                        <img src="@string.Format("{0}/{1}",brand.cyt369.com.utility.SystemSettingService.Instance.BrandInternalBucket.HttpURL,img.ImagePath)" alt="">
                    }
                }
            </div>
            <div class="picFocus-bottom">
                @if (brandDetail.BrandImages != null)
                {
                    @foreach (var img in brandDetail.BrandImages)
                    {
                        <div class="picFocus-bottom-box"><img src="@string.Format("{0}/{1}",brand.cyt369.com.utility.SystemSettingService.Instance.BrandInternalBucket.HttpURL,img.ImagePath)" alt=""></div>
                    }
                }
            </div>
        </div>
        <!-- 右侧介绍 -->
        <div class="des-top-rightbox fr">
            <div class="des-top-title-name">@brandDetail.Name</div>
            <ul class="des-top-card">
                <li>
            <dt>投资金额</dt>
            <dd>@brand.cyt369.com.MODELS.BrandHelper.GetAmountString(brandDetail.Amount)</dd>
            </li>
            <li>
            <dt>品牌发源地</dt>
            @if (citys != null)
            {                          
                @foreach (var city in citys)
                {
                    if (city.Id == brandDetail.FranchiseRegionID)
                    {
                        <dd>@city.CityName</dd>
                    }
                           
                }
            }
            </li>
            <li>
            <dt>门店数量</dt>
            <dd>@brandDetail.StoreCount 家</dd>
            </li>
            <li>
            <dt>咨询人数</dt>
            <dd>@brandDetail.InquiryCount</dd>
            </li>
            </ul>

            <div class="des-top-intro">
                <dl>
                    <dt>
                        <em>企业名称:</em>
                        <span>深圳青春东北泥路烤肉管理有限公司</span>
                    </dt>
                </dl>

                <dl>
                    <dd>
                        <em>所属行业:</em>
                            <span>
                                <a href="~/Search/Index/@Base64.ObjectToBase64(new {  page=1,parentCategoryID=brandDetail.Category.ParentID })" target="_blank">@brandDetail.Category.Parent.CategoryName</a> >
                                <a href="~/Search/Index/@Base64.ObjectToBase64(new {  page=1,categoryID=brandDetail.CategoryID })" target="_blank">@brandDetail.Category.CategoryName</a>
                            </span>
                        </dd>
                    <dd>
                        <em>主营产品:</em>
                        <span>@brandDetail.MainProduct</span>
                    </dd>
                </dl>

                <dl>
                    <dd>
                        <em>适合人群:</em>
                        <span>@brandDetail.TargetAudience</span>
                    </dd>
                    <dd>
                        <em>发展模式:</em>
                        <span>@brandDetail.DevelopmentModel</span>
                    </dd>
                </dl>

                <dl>
                </dl>

                <dl>
                    <dt><em>招商网站:</em>
                        <span>
                            @if (@brandDetail.FranchiseWebsite != null && @brandDetail.FranchiseWebsite != "")
                            {
                                <a href="@brandDetail.FranchiseWebsite" target="_blank">@brandDetail.FranchiseWebsite</a>
                            }
                            else
                            {
                                <span>暂无</span>
                            }
                        </span>
                        </dt>
                    </dl>
            </div>

            <div class="des-top-btn">
                <a href="#liuyan">我要加盟</a>
                <a href="#liuyan">获取开店资料</a>
            </div>
        </div>
    </div>

    <!-- 主要内容的中间部分的详细加盟信息 -->
    <div class="des-middle w1200">
        <!-- 左边部分 -->
        <div class="Lcont fl">
            <div class="des-middle-box">
                <div class="des-middle-box-title">
                    <ul class="detail-nav-ul">
                        <li><a class="active" href="">品牌信息</a></li>
                        <li><a href="">加盟优势</a></li>
                        <li><a href="">加盟条件</a></li>
                        <li><a href="">加盟流程</a></li>
                    </ul>
                </div>
                <div class="des-middle-box-info">
                    <!-- 品牌信息的位置 -->
                    <div class="des-middle-box-info-title brand_info" id="des-title-active1">
                        <h3>品牌信息</h3>
                            <div id="BrandDetails" class="RichText">
                            brandDetail.BrandExtension.BrandDetails
                        </div>
                      
                    </div>
                    <!-- 加盟优势的位置 -->
                    <div class="des-middle-box-info-title brand_info" id="des-title-active2">
                        <h3>加盟优势</h3>
                            <div id="FranchiseAdvantages" class="RichText">
                            brandDetail.BrandExtension.FranchiseAdvantages
                        </div>
                     

                    </div>
                    <!-- 加盟条件的位置 -->
                    <div class="des-middle-box-info-title brand_info" id="des-title-active3">
                        <h3>加盟条件</h3>
                            <div id="FranchiseConditions" class="RichText">
                            brandDetail.BrandExtension.FranchiseConditions
                        </div>
                       

                    </div>
                    <!-- 加盟流程的位置 -->
                    <div class="des-middle-box-info-title brand_info" id="des-title-active4">
                        <h3>加盟流程</h3>
                            <div id="FranchiseProcess" class="RichText">
                            brandDetail.BrandExtension.FranchiseProcess
                        </div>
            

                    </div>
                </div>
            </div>
            <partial name="_liuyan" />
        </div>
        <!-- 右边部分 -->
        <div class="Rcont fr">
            <div class="Rcont_zero">
                <h3>
                    <i class="iconfont icon-title"></i>
                    <span>企业信息</span>
                </h3>
                <p class="p1">
                    <img src="" alt="企业图片">
                </p>
                <p class="p2">成都川里川外餐饮管理有限公司</p>
                <p class="p3">
                    <em>成立时间：</em>
                    <span>2011年</span>
                </p>
                <p class="p4">
                    <em>注册资金</em>
                    <span>1000万元</span>
                </p>
            </div>
        </div>
    </div>
</div>
}
